package com.blobfish.fiction.common.base.model;

/**
 * 列表输入容器
 *
 * @param <T>
 * @author huangbo
 */
public class QmParamTable<T> extends QmParam<T> {
    private static final long serialVersionUID = 1L;
    /**
     * 默认页码1
     */
    private int page = 1;
    /**
     * 默认分页size=30
     */
    private int limit = 30;
    /**
     * 是否分页 默认分页
     */
    private boolean isPage = true;
    /**
     * 排序字段
     */
    private String sortString;
    /**
     * 默认排序字段
     */
    private String defaultSortString;


    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public boolean isPage() {
        return isPage;
    }

    public void setPage(boolean page) {
        isPage = page;
    }

    public String getSortString() {
        return sortString;
    }

    public void setSortString(String sortString) {
        this.sortString = sortString;
    }

    public String getDefaultSortString() {
        return defaultSortString;
    }

    public void setDefaultSortString(String defaultSortString) {
        this.defaultSortString = defaultSortString;
    }

    @Override
    public String toString() {
        return "QmParamTable{" +
                "page=" + page +
                ", limit=" + limit +
                ", isPage=" + isPage +
                ", sortString='" + sortString + '\'' +
                ", defaultSortString='" + defaultSortString + '\'' +
                '}';
    }
}
